Ext.ns('Portal.renderer');

Ext.apply(Portal.renderer, {
    available:function(data, metadata, record, rowIndex, columnIndex, store) {
        if (data == "1") {
            return "DA";
        }
        return "NU";
    },
    mailerStatus:function(data, metadata, record, rowIndex, columnIndex, store) {
        if (data == "0") {
            return "In asteptare";
        }
        else
        if (data == "1") {
            return "In derulare"
        }
        return "Finalizat";
    },
     redColor:function(data, metadata, record, rowIndex, columnIndex, store) {
        return "<font color=red>"+data+"</font>";
    },
     greenColor:function(data, metadata, record, rowIndex, columnIndex, store) {
       return "<font color=green>"+data+"</font>";
    }
});